from django.conf import settings

from gis.common.conf import GConfClient

conf_client = GConfClient(**settings.GCONF)
conf_decorator = conf_client.decorator()
conf_client.start()


@conf_decorator("im.json")
class IMConf:
    host = "http://3.1.171.240:8080/"
    app_id = "0002"
    api_key = "sfwfwkkjgw123"
    img_host = "http://image.barchain.net/"


@conf_decorator("maestro.json")
class MaestroConf:
    host = "http://3.1.242.202:9000"
    key = "245d648e9ea8cc006ac828335a7af8d9"


@conf_decorator("qiniu.json")
class QiniuConf:
    access_key = "rwoShkNuSy85fMnWcMoCWj3ZHg0LTAfIadE5Ae_2"
    secret_key = "dfzb2gB_ysTfrtmC0kqzqwjbcruSrl9Q74eRc0fm"
    # 要上传的空间
    bucket_name = "pay-itpay"
